import { requestPort } from '@/utils/request.js';

//登录
export function login(params) {
  return requestPort({
    url: '/api/user/login',
    method: 'POST',
    params: params
  });
}

//发送验证码
export function smsSend(params) {
  return requestPort({
    url: '/api/sms/send',
    method: 'POST',
    params: params
  });
}

//验证码登录
export function mobileLogin(params) {
  return requestPort({
    url: '/api/user/mobilelogin',
    method: 'POST',
    params: params
  });
}

//修改密码
export function changePwd(params) {
  return requestPort({
    url: '/api/user/changepwd',
    method: 'POST',
    params: params
  });
}
